package com.sun.stringescapeutils;

import okhttp3.HttpUrl;

public class HttpUrlBuilderTest {
    public static void main(String[] args) {
        String url = "https://www.netkiller.cn/article?username="+ "SunXueTeng" + "&category="+ "VIP";
        HttpUrl.Builder builder = HttpUrl.parse("https://www.netkiller.cn/article").newBuilder();
        builder.addQueryParameter("username","SunXueTeng");
        builder.addQueryParameter("category","VIP");
        HttpUrl build = builder.build();
        System.out.println(builder.build().toString());
    }
}
